package com.qyhl.school.school.reporter.news;


import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class SchoolReporterNewsPresenter implements SchoolReporterNewsContract.SchoolReporterNewsPresenter {
    private SchoolReporterNewsContract.SchoolReporterNewsView mView;
    private SchoolReporterNewsModel mModel;

    public SchoolReporterNewsPresenter(SchoolReporterNewsContract.SchoolReporterNewsView mView) {
        this.mView = mView;
        this.mModel = new SchoolReporterNewsModel(this);
    }


    @Override
    public void getData(String sectionId, String newsId) {
        mModel.getData(sectionId, newsId);
    }

    @Override
    public void setData(List<NewsBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
